<?php get_header(); ?>

	<div id="wrapper">
    	<div id="content">

		<?php the_post() ?>

		<?php if ( is_day() ) : ?>
			<h2 class="page-title"><?php printf(__('Daily Archives: <span>%s</span>'), get_the_time(get_settings('date_format'))) ?></h2>
		<?php elseif ( is_month() ) : ?>
			<h2 class="page-title"><?php printf(__('Monthly Archives: <span>%s</span>'), get_the_time('F Y')) ?></h2>
		<?php elseif ( is_year() ) : ?>
			<h2 class="page-title"><?php printf(__('Yearly Archives: <span>%s</span>'), get_the_time('Y')) ?></h2>
		<?php elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) : ?>
			<h2 class="page-title"><?php _e('Blog Archives') ?></h2>
		<?php endif; ?>

		<div style="margin:5px 0 15px;height:1px;background:url('<?php bloginfo('template_directory'); ?>/imgs/bg-strip.gif') repeat-x 0 100%;"></div>

		<?php rewind_posts() ?>

		<?php while ( have_posts() ) : the_post(); ?>

			<div id="post-<?php the_ID(); ?>" class="<?php sandbox_post_class() ?>">
				<h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permalink to %s'), wp_specialchars(get_the_title(), 1)) ?>"><?php the_title(); ?></a></h3>
				<div class="entry-date entry-meta"><?php unset($previousday); printf(__('%1$s'), the_date('', '', '', false), get_the_time()) ?></div>

				<div class="entry-content">
					<?php the_content(''.__('read more &raquo;').''); ?>
				</div>

				<div class="entry-meta">
					<span class="cat-list"><?php printf(__('Posted in: %s &#8211; '), get_the_category_list(', ')) ?></span>
					<span class="comments-link"><?php comments_popup_link(__('No Comments', ''), __('1 Comment', ''), __('% Comments', '')) ?></span>
					<?php edit_post_link(__(' &#8211; Edit', ''), "\t\t\t\t\t<span class=\"edit-link\">", "</span>\n"); ?>
				</div>
			</div><!-- .post -->

		<?php endwhile ?>

			<div class="navigation clearfix">
				<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&laquo;</span> Older posts')) ?></div>
				<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">&raquo;</span>')) ?></div>
			</div>

		</div><!-- #content -->
	</div><!-- #wrapper -->

<?php get_sidebar(); ?>

<?php get_footer(); ?>
